home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / du_lib / mode.c < prev    next >
C/C++ Source or Header  |  1995-07-10  |  580b  |  33 lines

  1. /*
  2.   DU_LIB v2
  3.   Gem Window Management & Dialog Library For Lattice C
  4.   ½1994, by Craig Graham.
  5.   
  6.   Based on the DU_LIBv1 Library for HiSoft Basic.
  7. */
  8.  
  9. /*
  10.     Mode Control Code
  11. */
  12.  
  13. #include "dulib.h"
  14.  
  15. /*
  16.     Set a mode control variable.
  17. */
  18. void DU_mode(ModeType mt, short m)
  19. {
  20.     switch (mt)
  21.     {
  22.         case DU_MODE_RIGHT_EQUALS_DOUBLE:
  23.             RightClickEqualsDoubleClick=m;
  24.             break;
  25.         case DU_MODE_SCROLL_HIGHLIGHT_IS_INVERSE:
  26.             ScrollSelectionIsInverse=m;
  27.             break;
  28.         case DU_MODE_KEYPRESS_TO_WINDOW_UNDER_MOUSE:
  29.             KeypressToWindowUnderMouse=m;
  30.             break;
  31.     }
  32. }
  33.